/**
 * @name Title
 * @desc 头部标题
 */

import React, { Component } from "react"
import "./styles.css"

class Title extends Component {
  render() {
    const { tag, title, enTitle, smTitle } = this.props
    return (
      <div className="tBody" style={{ borderBottom: tag === 0 ? "0px" : null }}>
        <div>{title}</div>
        <div className="enTitle">{enTitle}</div>
        {smTitle && (
          <div className="smTitle" style={{ textAlign: tag === 4 ? null : "right" }}>
            {smTitle}
          </div>
        )}
      </div>
    )
  }
}
export default Title
